package com.charger.cooperation.service.impl;

import java.util.List;
import com.charger.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.charger.cooperation.mapper.ChargerOperationMapper1;
import com.charger.cooperation.domain.ChargerOperation1;
import com.charger.cooperation.service.IChargerOperationService1;

/**
 * 统计每日充电信息Service业务层处理
 * 
 * @author Qinkunpeng
 * @date 2024-11-27
 */
@Service
public class ChargerOperationServiceImpl11 implements IChargerOperationService1
{
    @Autowired
    private ChargerOperationMapper1 chargerOperationMapper1;

    /**
     * 查询统计每日充电信息
     * 
     * @param opId 统计每日充电信息主键
     * @return 统计每日充电信息
     */
    @Override
    public ChargerOperation1 selectChargerOperationByOpId(Long opId)
    {
        return chargerOperationMapper1.selectChargerOperationByOpId(opId);
    }

    /**
     * 查询统计每日充电信息列表
     * 
     * @param chargerOperation1 统计每日充电信息
     * @return 统计每日充电信息
     */
    @Override
    public List<ChargerOperation1> selectChargerOperationList(ChargerOperation1 chargerOperation1)
    {
        return chargerOperationMapper1.selectChargerOperationList(chargerOperation1);
    }

    /**
     * 新增统计每日充电信息
     * 
     * @param chargerOperation1 统计每日充电信息
     * @return 结果
     */
    @Override
    public int insertChargerOperation(ChargerOperation1 chargerOperation1)
    {
        chargerOperation1.setCreateTime(DateUtils.getNowDate());
        return chargerOperationMapper1.insertChargerOperation(chargerOperation1);
    }

    /**
     * 修改统计每日充电信息
     * 
     * @param chargerOperation1 统计每日充电信息
     * @return 结果
     */
    @Override
    public int updateChargerOperation(ChargerOperation1 chargerOperation1)
    {
        return chargerOperationMapper1.updateChargerOperation(chargerOperation1);
    }

    /**
     * 批量删除统计每日充电信息
     * 
     * @param opIds 需要删除的统计每日充电信息主键
     * @return 结果
     */
    @Override
    public int deleteChargerOperationByOpIds(Long[] opIds)
    {
        return chargerOperationMapper1.deleteChargerOperationByOpIds(opIds);
    }

    /**
     * 删除统计每日充电信息信息
     * 
     * @param opId 统计每日充电信息主键
     * @return 结果
     */
    @Override
    public int deleteChargerOperationByOpId(Long opId)
    {
        return chargerOperationMapper1.deleteChargerOperationByOpId(opId);
    }
}
